#include "qqcellline.h"
#include "ui_qqcellline.h"
#include<QHBoxLayout>
QQCellLine::QQCellLine(const QString& username,bool status,QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::QQCellLine)
{
    ui->setupUi(this);
    ui->lblname->setText(username);
    if(status==true)
    {
        ui->label_3->setText("当前用户状态：在线");
    }

    this->show();
    this->setVisible(true);

}

QQCellLine::~QQCellLine()
{
    delete ui;
}

QString QQCellLine::getstatus()
{
    return ui->label_3->text();
}
